package com.ftg.learn.mybatis.chapter3.service.impl;

import com.ftg.learn.mybatis.chapter3.config.SessionUtil;
import com.ftg.learn.mybatis.chapter3.mapper.SaleFramerMapper;
import com.ftg.learn.mybatis.chapter3.mapper.SaleMapper;
import com.ftg.learn.mybatis.chapter3.service.ISaleFramer;
import com.ftg.learn.mybatis.chapter3.vo.FrameSale;

import java.util.List;

/**
 * @author kangjx
 * @createTime 2022/10/14
 */
public class SaleFramerImpl implements ISaleFramer {

    SaleFramerMapper saleFramerMapper;

    SessionUtil sessionUtil = new SessionUtil();

    public SaleFramerImpl(){
        saleFramerMapper = sessionUtil.getAutoCommitSession().getMapper(SaleFramerMapper.class);
    }


    @Override
    public List<FrameSale> showFramerWithSale() {
        return saleFramerMapper.showFramerWithSale();
    }

}
